project(kifxofx)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})

set(QT_USE_QTXML TRUE)
set(QT_USE_QTXMLPATTERNS TRUE)

set(kifxofx_SRCS
	main.cpp
	mainwindow.cpp
	_myfile.cpp
	transfer.cpp)
#	ifxreader.cpp)

set(kifxofx_HDRS
	mainwindow.h
	_myfile.h)

set(kifxofx_FRMS
	ui/MainWindow.ui)

set(kifxofx_RES
	res/MainWindow.qrc)

QT4_WRAP_CPP(kifxofx_HDRS_MOC ${kifxofx_HDRS})
QT4_AUTOMOC(${kifxofx_SRCS})
QT4_WRAP_UI(kifxofx_FRMS_HDRS ${kifxofx_FRMS})
QT4_ADD_RESOURCES(kifxofx_RES_RCC ${kifxofx_RES})

add_executable(kifxofx
	${kifxofx_SRCS}
	${kifxofx_HDRS_MOC}
	${kifxofx_FRMS_HDRS}
	${kifxofx_RES_RCC})

target_link_libraries(kifxofx
	${QT_QTCORE_LIBRARY}
	${QT_QTGUI_LIBRARY}
	${QT_QTXML_LIBRARY}
	${QT_QTXMLPATTERNS_LIBRARY})

add_subdirectory(res)
add_subdirectory(ui)